<extend name="Public:base"/>

<block name="main">
<div id="yzh-content" class="col-xs-12">
  	<div class="main-title">
    	<h2>编辑</h2>
  	</div>

	<form name="myform" id="myform" class="form-horizontal" action="<if condition="$action_name=='add'">{:U('Lang/insert')}<else />{:U('Lang/update')}</if>" method="post">

		<div class="form-group">
			<label class="control-label col-md-2"><font color="red">*</font>语言名称</label>
			<div class="col-md-6">
				<input type="text" id="name" name="name" value="{$vo.name}" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-md-2"><font color="red">*</font>语言标识</label>
			<div class="col-md-6">
				<input type="text" id="mark" name="mark" value="{$vo.mark}" class="form-control" />
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-md-2">语言图标</label>
			<div class="col-md-6">
				<input type="text" id="flag" name="flag" value="{$vo.flag}" class="form-control"/>
			</div>
		</div>
		<div class="form-group">
		  	<label class="control-label col-md-2">语言目录</label>
		  	<div class="col-md-6">
				<input type="text" id="path" name="path" value="{$vo.path}" class="form-control"/>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-md-2">{:L('LANG_DOMAIN')}</label>
			<div class="col-md-6">
				<input type="text" name="domain" value="{$vo.domain}" class="form-control input-sm"/>
			</div>
		</div>
		<div class="form-group">
			<label class="control-label col-md-2">{:L('STATUS')}</label>
			<div class="col-md-6">
				{:Form::radio(array('field'=>'status','options'=>array('1'=>L('yes'),'0'=>L('no'))),$vo['status'])}
			</div>
		</div>


		<div class="form-actions">
			<input type="hidden" name="id" value="{$vo.id}">
			<input type="submit"  value="提交" class="btn btn-sm btn-primary" >
			<a class="btn btn-sm btn-primary" href="javascript:window.history.go(-1);">返回</a>
		</div>
	</form>
</div>
</block>